<!DOCTYPE html>
<html lang="en">
<head>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
</head>
<body>
    <div id="app">
        <label for="name">姓名：</label>
        <input v-model="name" type="text" id="name">
        <p>{{name}}</p>
        <label for="age">年龄：</label>
        <input v-model="age" type="text" id="age">
        <p>{{age}}</p>
    </div>
    <script>
        new Vue({
            el:'#app',
            data:{
                name:'金城武',
                age:'40'
            }
        })
    </script>
</body>
</html>